package com.powernode.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author syo 2319615164@qq.com
 * @description 白名单
 * @date 2024/10/1
 * @Copyright syo
 */
@Data
@Component
@NoArgsConstructor
@AllArgsConstructor
@ConfigurationProperties(prefix = "gateway.white")
@RefreshScope
public class WhileUrlsConfig {

    /**
     * 白名单路径
     */
    private List<String> allowUrls;
}
